//
//  MyWalletMiddleView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/5.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyWalletMiddleView.h"

@implementation MyWalletMiddleView

- (id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView
{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.backgroundColor = [UIColor whiteColor];
        
        GLGWLabel *leftlabe = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        [leftlabe mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(kWidthProportion_In_iPhoneTriploid(19));
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(20));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(17)));
        }];
        leftlabe.text = @"可提现佣金";
        leftlabe.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *leftlabe2 = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        [leftlabe2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(leftlabe.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(6));
            make.centerX.equalTo(leftlabe.mas_centerX);
        }];
        leftlabe2.text = @"66,666.66";
        leftlabe2.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *middlelabe = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        [middlelabe mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(leftlabe.mas_right).offset(kWidthProportion_In_iPhoneTriploid(95));
            make.centerY.equalTo(leftlabe.mas_centerY);
        }];
        middlelabe.text = @"上月预估收入";
        middlelabe.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *middlelabe2 = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        [middlelabe2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(middlelabe.mas_centerX);
            make.centerY.equalTo(leftlabe2.mas_centerY);
        }];
        middlelabe2.text = @"66,666.66";
        middlelabe2.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *rightLab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        [rightLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(middlelabe.mas_centerY);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(17)));
        }];
        rightLab.text = @"本月预估收入";
        rightLab.textAlignment = NSTextAlignmentCenter;
        
        GLGWLabel *rightLab2 = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        [rightLab2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(rightLab.mas_centerX);
            make.centerY.equalTo(middlelabe2.mas_centerY);
        }];
        rightLab2.text = @"66,666.66";
        rightLab2.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}


@end
